<include file="Admin:header" />

<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
 <script type="text/javascript">
  function clear_del()
  {
   if(confirm("确定要删除数据吗？"))
   {
	subform("<{:U('Link/delall')}>");
   }
  }
 </script>

<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">友情链接</div></td>
      </tr>
    </table>

<div class="main">

    <div class="operate">
        <div class="left">
            <input type="button" onclick="window.open('__URL__/add','main')" target="main" class="btn_blue" value="添加">
				<input class="btn_blue" type="button" onClick="return clear_del();"  value="删除" />      
        </div>
        <if condition='ACTION_NAME eq "index"'>
        <div class="left_pad">
            <form method="get" action="__URL__/search">
                <input type="text" name="keyword" title="关键字" class="inp_default" value="">
                <input type="hidden" name="formhash" value="231cb4d8" />
                <input type="submit" class="btn_blue" value="查  询">
            </form>
        </div>
        </if>
    </div>
    <div class="list">    
    <form action="{:U(GROUP_NAME.'/Link/delAll')}" method="post" id="form_do" name="form_do">
        <table width="100%">
            <tr>
                <th><input  name="chkall" type="checkbox" id="chkall" onclick="selectall(this.form)"></th>
                <th>编号</th>
                <th>网站名称</th>
                
                <th>链接位置</th>
                <th>发布时间</th>
				<th>锁定</th>
                <th>顺序</th>
                <th>操作</th>
            </tr>
			<empty name="vlist">
			<tr>
			<td colspan="8"><div align="center">本区域暂无数据显示...</div></td>
			</tr>
			<else /> 
			
			<volist name='vlist' id='v'>
            <tr>
                <td><input type="checkbox" name="id[]" value="<{$v.id}>" ></td>
                <td><{$v.id}></td>
                <td><a href="<{$v.link_url}>" target="_blank"><{$v.link_name}></a></td>
                <td><{$v.link_url}></td>
				
                
                <td><{$v.link_addtime|date='Y-m-d H:i:s', ###}></td>
				 <td>
				<if condition="$v['link_show']==0">
				否
				<else />
				<span style="color:#FF0000">是</span>
				</if>
				 </td>
                <td><{$v.link_sort}></td>
                <td>
                    <a href="__APP__/<{$module}>/Link/edit/id/<{$v.id}>">编辑</a>
                    <a href="__URL__/del/id/<{$v.id}>" onclick="return confirm('是否确定删除?')">删除</a>
				</td>
            </tr>
            </volist>
			</empty> 
			
			
        </table>
       <div class="green-black"><{$page}>总共<{$count}>条记录</div>
    </form>
    </div>
</div>
<include file="Pubilc:copyright" />
</body>
</html>
